package cn.com.swu.mianyangapp.net;

import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.*;

import java.util.Map;
import java.util.Objects;

public interface NetService {
//    @POST
//    Call<ResponseBody> postCall(@Url String url, );

    @GET
    Call<ResponseBody> getCall(@Url String url);

    @POST
    @FormUrlEncoded
    Call<ResponseBody> postFormDataCall(@Url String url, @FieldMap Map<String, String>map);

    @POST
    @Headers("Content-Type: application/json")
    Call<ResponseBody> postFromJsonCall(@Url String url, @Body RequestBody body);

//    @POST
//    @Header("")
}
